import http from "@/utils/httpService";

//正常网络请求
export const requestApi = data => http.Axios.post("xx/xxx", data);
//文件下载请求
export const requestFileExportApi = data =>
  http.Axios.post("xx/xxx", data, { responseType: "blob" });
//文件上传请求
export const requestFileImportApi = data =>
  http.Axios.post("xx/xxx", data, {
    headers: { "Content-Type": "multipart/form-data" }
  });

//用户登录
export const loginApi = data => http.Axios.post("/login", data);

//用户菜单权限
export const authApi = data => http.Axios.post("/auth", data);

//用户登出
export const logoutApi = data => http.Axios.post("/logout", data);

//测试接口
export const testApi = data => http.Axios.post("/add", data);

//测试接口
export const signApi = data => http.Axios.post("/signin", data);

//商品列表接口
export const goodsApi = data => http.Axios.post("/goodsList", data);

//商品入库接口
export const goodsEnter = data => http.Axios.post("/goodsEnter", data);

//商品详情接口
export const goodsDetailApi = data => http.Axios.post("/goodsDetail", data);

//商品结算接口
export const goodsSettleApi = data => http.Axios.post("/goodsSettle", data);

//下载
export const excelDownApi = data => http.Axios.post("/download", data);

//商品申请
export const goodsApplyApi = data => http.Axios.post("/goodsApply", data);

//申请列表
export const applyListApi = data => http.Axios.post("/applyList", data);

//申请详情
export const applyDetailApi = data => http.Axios.post("/applyDetail", data);

//撤回申请
export const recallApplyApi = data => http.Axios.post("/recallApply", data);

//合同列表
export const agreeListApi = data => http.Axios.post("/agreeList", data);

//合同录入
export const agreeInputApi = data => http.Axios.post("/agreeInput", data);

//合同详情
export const agreeDetailApi = data => http.Axios.post("/agreeDetail", data);

//查询合同编号
export const searchAgreeId = data => http.Axios.post("/searchAgreeId", data);

//送货录入
export const sendRecordInput = data => http.Axios.post("/sendRecordInput", data);

//送货列表
export const sendRecordList = data => http.Axios.post("/sendRecordList", data);

//文章发布
export const publishApi = data => http.Axios.post("/publish", data);

//文章列表
export const articleListApi = data => http.Axios.post("/articleList", data);

//文章详情
export const articleDetailApi = data => http.Axios.post("/articleDetail", data);

//查询用户权限
export const userAuthApi = data => http.Axios.post("/userAuth", data);

//保存用户权限
export const userAuthSaveApi = data => http.Axios.post("/userAuthSave", data);